﻿using System.Threading.Tasks;

namespace WINPE_TOOLBOX
{
    public static class GlobalPaths
    {
        public static readonly string Tools = ".\\resources\\tools\\";
        public static readonly string ClientTemp = ".\\resources\\temp\\";
        public static readonly string Pe = ".\\resources\\files\\pe\\";
        public static readonly string Client = ".\\resources\\files\\client\\";
        public static readonly string InstallTemp = ".\\resources\\temp\\install\\peFiles\\EFI\\HotPE\\";
    }

    public static class GlobalUrl
    {
        public static readonly string API = "https://api.it0472.top/";
        public static readonly string Home = "https://www.douyin.com/user/MS4wLjABAAAApqiVtWH6slS__FaraZdDMwn_RMapMHihPYZZsBw63jA";
        public static readonly string Github = "https://github.com/VirtualHotBar/HotPE_Client";
        public static readonly string Docs = "https://docs.hotpe.top/";
        public static readonly string Blog = "https://blog.hotpe.top/";
        public static readonly string Donate = "https://www.hotpe.top/donation/";
        public static readonly string Update = "API/HotPE/GetUpdate/";
        public static readonly string BtwiseUpdate = "HotPE/GetUpdate/";
    }
    public static class InstallPeConfig
    {
        public static Task<string> SysLetter = Utils.RunCmdAsync("echo %SystemDrive%").ContinueWith(t => t.Result.Substring(0, 2));
        public static Task<string> Temp = Utils.RunCmdAsync("echo %temp%").ContinueWith(t => t.Result.Replace("\r\n", ""));
        public static Task<string> UserName = Utils.RunCmdAsync("echo %UserName%").ContinueWith(t => t.Result.Replace("\r\n", ""));
        public static Task<string> DesktopDir = Utils.RunCmdAsync("echo %SystemDrive%\\Users\\%UserName%\\Desktop\\").ContinueWith(t => t.Result.Replace("\r\n", ""));
    }
}